<?php
$active_account_lbl = Yii::t('app','Activate your account');

$this->pageTitle = Yii::t('app','Activate your account');
?>
<div class="section-wrapper post-w">
<div class="container">
<h1 class="section-main-header"><?php echo Yii::t('app','A new way to get rewards on shopping!'); ?></h1>
<div class="row">
	<div class="span5">
		<div class="white-card extra-padding">
			<div class="row-fluid">
				<legend><?php echo $active_account_lbl; ?></legend>
				<div style="text-align:center;">
					<a href="javascript:;" class="facebookButton facebook-login"><?php echo Yii::t('app', 'Register with Facebook'); ?></a>
					<br />
					<p style="font-size:13px;display:none;"><?php echo Yii::t('app','Earn extra bonus points when you register with Facebook.'); ?></p>
				</div>
				<div style="position:relative; padding-top:12px;">
					<hr />
					<p style="background:#fbfdfe;padding:2px 8px;color:#222;position:absolute;left:48%;top:20px;">Or</p>
				</div>
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'register-form',
	'htmlOptions'=>array('class'=>''),
	'enableClientValidation'=>false,
	'clientOptions'=>array(
		'validateOnSubmit'=>false,
	),
));
echo $form->textFieldRow($model, 'user_input', array('class'=>'span12', 'placeholder'=>Yii::t('app','Enter your phone number or email used at store') ));
echo $form->passwordFieldRow($model, 'password', array('class'=>'span12', 'placeholder'=>Yii::t('app','Password') ));
echo $form->passwordFieldRow($model, 'password_repeat', array('class'=>'span12'));
echo "<br />\n";
echo CHtml::submitButton(Yii::t('app','Register'), array('class'=>'btn btn-primary btn-large'));
$this->endWidget();
$form->errorSummary($model);
?>
				<p style="font-size:13px;"><?php echo Yii::t('app','By clicking Register, you confirm to accept our Terms of Service.'); ?></p>
				<hr />
				<div class="text-right">
					<a href="<?php echo Yii::app()->createUrl('/accounts/login') ?>"><?php echo Yii::t('app', 'Have an account already'); ?>?</a>
				</div>
			</div>
		</div>
	</div>
	<div class="span7">
		<h3>Welcome to join rewarding programs</h3>
		<p><strong>No need membership card anymore!</strong><br/>
			We help you collect points and redeem rewards just with your phone number or email.<br/>
			Super easy!</p>
		<hr />
		<h4>3 steps to earn points</h4>
		<ol class="list-step">
			<li>Our merchants will ask you phone number or email when you pay the bill.</li>
			<li>Give any one you want if you love to join their rewards program.</li>
			<li>You will receive notification by SMS/Email after merchants give you the points!</li>
		</ol>
		<hr />
		<h4>Easy to redeem rewards</h4>
		<ul class="list-step">
			<li>To redeem rewards, you just need tell merchants your phone number/email that you have used for earning points.</li>
		</ul>
		<hr />
		<p>We are in <i>beta</i> testing phase now.</p>
		<p>Welcome to <a href="javascript:void(0)" data-uv-lightbox="classic_widget" data-uv-mode="full" data-uv-primary-color="#cc6d00" data-uv-link-color="#007dbf" data-uv-default-mode="support" data-uv-forum-id="218126">leave your feedback or question</a>.</p>
	</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
	$('.facebook-login').click(function(){
		fbUI.login('<?php echo Yii::app()->createUrl('/accounts/facebook'); ?>');
	});
});
</script>